package com.example.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.example.entity.Teacher;

public interface TeacherRepository extends CrudRepository<Teacher, Integer>{
	@Query ("from Teacher where name=:name")
	public Teacher getName (@Param("name") String name);
}
